//
//  UIView+Frame.m
//  01_UIView-UIWindow
//
//  Created by dllo on 16/7/14.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)

- (void)setLST_x:(CGFloat)LST_x {
    CGRect rect = self.frame;
    rect.origin.x = LST_x;
    self.frame = rect;
    
}
- (CGFloat) LST_x {
    return self.frame.origin.x;
}
- (void)setLST_y:(CGFloat)LST_y {
    CGRect rectY = self.frame;
    rectY.origin.y = LST_y;
    self.frame = rectY;
}
- (CGFloat) LST_y {
    return self.frame.origin.y;
}
- (void)setLST_width:(CGFloat)LST_width {
    CGRect rectWidth = self.frame;
    rectWidth.size.width = LST_width;
    self.frame = rectWidth;
}
- (CGFloat) LST_width {
    return self.frame.size.width;
}
- (void)setLST_height:(CGFloat)lst_height {
    CGRect rectHeight = self.frame;
    rectHeight.size.height = lst_height;
    self.frame = rectHeight;
}
- (CGFloat) LST_height {
    return self.frame.size.height;
}
@end
